package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.api.content.model.vo.CourseTeacherVO;
import com.xuecheng.content.entity.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-04-02
 */
public interface CourseTeacherService extends IService<CourseTeacher> {
    /**
     * 根据Id查询教师基础信息
     *
     * @param courseBaseId 课程的Id值
     * @param companyId    公司的Id值
     * @return CourseTeacherDTO
     */
    List<CourseTeacherDTO> queryTeacherById(Long courseBaseId, Long companyId);

    /**
     * 教师信息修改或新增
     * @param courseTeacherDTO
     * @return
     */
    CourseTeacherDTO AddOrModifyTeacher(CourseTeacherDTO courseTeacherDTO ,Long companyId);

    /**
     * 根据课程id进行删除操作
     * @param companyId
     * @param courseId
     * @param courseTeacherId
     */
    boolean deleteTeacherById(Long courseId, Long courseTeacherId, Long companyId);




}

